﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SimpleBlog.Infrastructure.Repositories;
using SimpleBlog.Models;
using SimpleBlog.ViewModels;
using SimpleBlog.Helpers;

namespace SimpleBlog.Mvc
{
    public abstract class BlogViewPage<TModel> : WebViewPage<TModel>
    {
        public IConfigurationRepository Config { get; set; }

        public BlogViewPage()
            : base()
        {
            Config = DependencyResolver.Current.GetService<IConfigurationRepository>();
        }
    }
}